/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Telas;

import java.awt.Toolkit;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Thalyson
 */
public class Tela_PrincipalBasico extends javax.swing.JFrame {

    /**
     * Creates new form TelaPrincipalSimples
     */
    public Tela_PrincipalBasico(String user) {
        initComponents();
        jl_loged.setText(user);
        setSize(1024, 650);
        setLocationRelativeTo(null);
        Icon();
    }

    private Tela_PrincipalBasico() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

//<----------------------------------------------------------------------------------------------------------------------------------------->    

    private void Icon(){
    
        setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource("assistec_icon.png")));
        
    }
    
    
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel2 = new javax.swing.JLabel();
        jb_cadcliente = new javax.swing.JButton();
        jl_loged = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jButton1 = new javax.swing.JButton();
        jSeparator1 = new javax.swing.JSeparator();
        jLabel8 = new javax.swing.JLabel();
        jb_ordemservico = new javax.swing.JButton();
        jb_registrarvenda = new javax.swing.JButton();
        jLabel3 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jb_cadusuario = new javax.swing.JButton();
        jLabel4 = new javax.swing.JLabel();
        jb_gerenciaros = new javax.swing.JButton();
        jb_gervendas = new javax.swing.JButton();
        jb_agenda = new javax.swing.JButton();
        jb_contatos = new javax.swing.JButton();
        jLabel7 = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jm_solicitacoes = new javax.swing.JMenuItem();
        jMenu3 = new javax.swing.JMenu();
        jm_sobreassistec = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("AssisTec - Menu Principal");
        setResizable(false);
        getContentPane().setLayout(null);

        jLabel2.setBackground(new java.awt.Color(78, 78, 78));
        jLabel2.setFont(new java.awt.Font("Times New Roman", 1, 12)); // NOI18N
        jLabel2.setForeground(new java.awt.Color(255, 255, 255));
        jLabel2.setText("REGISTRAR ANÁLISE");
        getContentPane().add(jLabel2);
        jLabel2.setBounds(90, 210, 130, 14);

        jb_cadcliente.setBackground(new java.awt.Color(255, 255, 255));
        jb_cadcliente.setForeground(new java.awt.Color(78, 78, 78));
        jb_cadcliente.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/assistec_analisar.jpeg"))); // NOI18N
        jb_cadcliente.setToolTipText("Registra e Gerencia Análises");
        jb_cadcliente.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 255, 255), 1, true));
        jb_cadcliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jb_cadclienteActionPerformed(evt);
            }
        });
        getContentPane().add(jb_cadcliente);
        jb_cadcliente.setBounds(80, 50, 150, 150);

        jl_loged.setBackground(new java.awt.Color(255, 255, 255));
        jl_loged.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N
        jl_loged.setForeground(new java.awt.Color(255, 255, 255));
        jl_loged.setToolTipText("");
        jl_loged.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255)));
        getContentPane().add(jl_loged);
        jl_loged.setBounds(430, 560, 160, 30);

        jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/assistec_loged.png"))); // NOI18N
        getContentPane().add(jLabel9);
        jLabel9.setBounds(390, 560, 30, 30);

        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/assistec_sair.png"))); // NOI18N
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });
        getContentPane().add(jButton1);
        jButton1.setBounds(600, 550, 41, 40);

        jSeparator1.setForeground(new java.awt.Color(255, 255, 255));
        getContentPane().add(jSeparator1);
        jSeparator1.setBounds(70, 540, 950, 10);

        jLabel8.setBackground(new java.awt.Color(255, 255, 255));
        jLabel8.setForeground(new java.awt.Color(255, 255, 255));
        jLabel8.setText("AssisTec");
        getContentPane().add(jLabel8);
        jLabel8.setBounds(10, 530, 60, 14);

        jb_ordemservico.setBackground(new java.awt.Color(255, 255, 255));
        jb_ordemservico.setForeground(new java.awt.Color(78, 78, 78));
        jb_ordemservico.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/assistec_os.png"))); // NOI18N
        jb_ordemservico.setToolTipText("Registrar O.S.");
        jb_ordemservico.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 255, 255), 1, true));
        jb_ordemservico.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jb_ordemservicoActionPerformed(evt);
            }
        });
        getContentPane().add(jb_ordemservico);
        jb_ordemservico.setBounds(320, 50, 150, 150);

        jb_registrarvenda.setBackground(new java.awt.Color(78, 78, 78));
        jb_registrarvenda.setForeground(new java.awt.Color(78, 78, 78));
        jb_registrarvenda.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/assistec_vendas.png"))); // NOI18N
        jb_registrarvenda.setToolTipText("Registrar Vendas");
        jb_registrarvenda.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 255, 255), 1, true));
        jb_registrarvenda.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jb_registrarvendaActionPerformed(evt);
            }
        });
        getContentPane().add(jb_registrarvenda);
        jb_registrarvenda.setBounds(550, 50, 150, 150);

        jLabel3.setBackground(new java.awt.Color(78, 78, 78));
        jLabel3.setFont(new java.awt.Font("Times New Roman", 1, 12)); // NOI18N
        jLabel3.setForeground(new java.awt.Color(255, 255, 255));
        jLabel3.setText("REGISTRAR O.S.");
        getContentPane().add(jLabel3);
        jLabel3.setBounds(350, 210, 100, 14);

        jLabel6.setBackground(new java.awt.Color(78, 78, 78));
        jLabel6.setFont(new java.awt.Font("Times New Roman", 1, 12)); // NOI18N
        jLabel6.setForeground(new java.awt.Color(255, 255, 255));
        jLabel6.setText("REGISTRAR VENDA");
        getContentPane().add(jLabel6);
        jLabel6.setBounds(570, 210, 120, 14);

        jb_cadusuario.setBackground(new java.awt.Color(255, 255, 255));
        jb_cadusuario.setForeground(new java.awt.Color(78, 78, 78));
        jb_cadusuario.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/assistec_cliente.jpg"))); // NOI18N
        jb_cadusuario.setToolTipText("Cadastrar Novo Cliente");
        jb_cadusuario.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 255, 255), 1, true));
        jb_cadusuario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jb_cadusuarioActionPerformed(evt);
            }
        });
        getContentPane().add(jb_cadusuario);
        jb_cadusuario.setBounds(80, 320, 150, 150);

        jLabel4.setBackground(new java.awt.Color(78, 78, 78));
        jLabel4.setFont(new java.awt.Font("Times New Roman", 1, 12)); // NOI18N
        jLabel4.setForeground(new java.awt.Color(255, 255, 255));
        jLabel4.setText("CADASTRAR CLIENTE");
        getContentPane().add(jLabel4);
        jLabel4.setBounds(90, 480, 140, 14);

        jb_gerenciaros.setBackground(new java.awt.Color(78, 78, 78));
        jb_gerenciaros.setForeground(new java.awt.Color(78, 78, 78));
        jb_gerenciaros.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/assistec_executados.png"))); // NOI18N
        jb_gerenciaros.setToolTipText("Gerenciar O.S.");
        jb_gerenciaros.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 255, 255), 1, true));
        jb_gerenciaros.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jb_gerenciarosActionPerformed(evt);
            }
        });
        getContentPane().add(jb_gerenciaros);
        jb_gerenciaros.setBounds(320, 320, 150, 150);

        jb_gervendas.setBackground(new java.awt.Color(255, 255, 255));
        jb_gervendas.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/assistec_gerenciarvendas.png"))); // NOI18N
        jb_gervendas.setToolTipText("Gerenciar Vendas");
        jb_gervendas.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255)));
        jb_gervendas.setBorderPainted(false);
        jb_gervendas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jb_gervendasActionPerformed(evt);
            }
        });
        getContentPane().add(jb_gervendas);
        jb_gervendas.setBounds(560, 320, 150, 150);

        jb_agenda.setBackground(new java.awt.Color(255, 255, 255));
        jb_agenda.setForeground(new java.awt.Color(78, 78, 78));
        jb_agenda.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/assistec_orçamento.png"))); // NOI18N
        jb_agenda.setToolTipText("Orçamentos");
        jb_agenda.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 255, 255), 1, true));
        jb_agenda.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jb_agendaActionPerformed(evt);
            }
        });
        getContentPane().add(jb_agenda);
        jb_agenda.setBounds(800, 320, 150, 150);

        jb_contatos.setBackground(new java.awt.Color(255, 255, 255));
        jb_contatos.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/assistec_agenda.jpg"))); // NOI18N
        jb_contatos.setToolTipText("Contatos");
        jb_contatos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jb_contatosActionPerformed(evt);
            }
        });
        getContentPane().add(jb_contatos);
        jb_contatos.setBounds(800, 50, 150, 150);

        jLabel7.setFont(new java.awt.Font("Times New Roman", 1, 12)); // NOI18N
        jLabel7.setForeground(new java.awt.Color(255, 255, 255));
        jLabel7.setText("GERENCIAR O.S.");
        getContentPane().add(jLabel7);
        jLabel7.setBounds(350, 480, 100, 14);

        jLabel18.setBackground(new java.awt.Color(255, 255, 255));
        jLabel18.setFont(new java.awt.Font("Times New Roman", 1, 12)); // NOI18N
        jLabel18.setForeground(new java.awt.Color(255, 255, 255));
        jLabel18.setText("GERENCIAR VENDAS");
        getContentPane().add(jLabel18);
        jLabel18.setBounds(570, 480, 130, 14);

        jLabel5.setBackground(new java.awt.Color(78, 78, 78));
        jLabel5.setFont(new java.awt.Font("Times New Roman", 1, 12)); // NOI18N
        jLabel5.setForeground(new java.awt.Color(255, 255, 255));
        jLabel5.setText("ORÇAMENTO");
        getContentPane().add(jLabel5);
        jLabel5.setBounds(830, 480, 80, 14);

        jLabel13.setBackground(new java.awt.Color(255, 255, 255));
        jLabel13.setFont(new java.awt.Font("Times New Roman", 1, 12)); // NOI18N
        jLabel13.setForeground(new java.awt.Color(255, 255, 255));
        jLabel13.setText("CONTATOS");
        getContentPane().add(jLabel13);
        jLabel13.setBounds(840, 210, 90, 14);

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/assistec_fundo.png"))); // NOI18N
        getContentPane().add(jLabel1);
        jLabel1.setBounds(0, 0, 1030, 650);

        jMenuBar1.setBackground(new java.awt.Color(255, 255, 255));
        jMenuBar1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(78, 78, 78)));
        jMenuBar1.setForeground(new java.awt.Color(255, 255, 255));

        jMenu1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(78, 78, 78)));
        jMenu1.setText("   AssisTec   ");
        jMenu1.setBorderPainted(true);

        jm_solicitacoes.setText("Registrar Solicitação");
        jm_solicitacoes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jm_solicitacoesActionPerformed(evt);
            }
        });
        jMenu1.add(jm_solicitacoes);

        jMenuBar1.add(jMenu1);

        jMenu3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(78, 78, 78)));
        jMenu3.setText("   Sobre   ");
        jMenu3.setBorderPainted(true);

        jm_sobreassistec.setBackground(new java.awt.Color(255, 255, 255));
        jm_sobreassistec.setText("Sobre AssisTec");
        jm_sobreassistec.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jm_sobreassistecActionPerformed(evt);
            }
        });
        jMenu3.add(jm_sobreassistec);

        jMenuBar1.add(jMenu3);

        setJMenuBar(jMenuBar1);

        pack();
        setLocationRelativeTo(null);
    }// </editor-fold>//GEN-END:initComponents

    private void jb_cadclienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jb_cadclienteActionPerformed
        Tela_RegAnaliseBasico tra = null;
        try {
            tra = new Tela_RegAnaliseBasico();
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Tela_Principal.class.getName()).log(Level.SEVERE, null, ex);
        }
        tra.setVisible(true);
    }//GEN-LAST:event_jb_cadclienteActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        Tela_Sair ts = new Tela_Sair();
        ts.setVisible(true);
    }//GEN-LAST:event_jButton1ActionPerformed

    private void jb_ordemservicoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jb_ordemservicoActionPerformed
        Tela_RegOS tros = null;
        try {
            tros = new Tela_RegOS();
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Tela_Principal.class.getName()).log(Level.SEVERE, null, ex);
        }
        tros.setVisible(true);
    }//GEN-LAST:event_jb_ordemservicoActionPerformed

    private void jb_registrarvendaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jb_registrarvendaActionPerformed
        Tela_RegVendas trv = null;
        try {
            trv = new Tela_RegVendas();
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Tela_Principal.class.getName()).log(Level.SEVERE, null, ex);
        }
        trv.setVisible(true);
    }//GEN-LAST:event_jb_registrarvendaActionPerformed

    private void jb_cadusuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jb_cadusuarioActionPerformed

        Tela_CadClienteBasico tccb = null;

        try {
            tccb = new Tela_CadClienteBasico();
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Tela_Principal.class.getName()).log(Level.SEVERE, null, ex);
        }
        tccb.setVisible(true);
    }//GEN-LAST:event_jb_cadusuarioActionPerformed

    private void jb_gerenciarosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jb_gerenciarosActionPerformed

        Tela_GerOSBasico tgob = null;
        try {
            tgob = new Tela_GerOSBasico();
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Tela_Principal.class.getName()).log(Level.SEVERE, null, ex);
        }
        tgob.setVisible(true);
    }//GEN-LAST:event_jb_gerenciarosActionPerformed

    private void jb_gervendasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jb_gervendasActionPerformed
        Tela_GerVendasBasico tgvb = null;
        try {
            tgvb = new Tela_GerVendasBasico();
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Tela_Principal.class.getName()).log(Level.SEVERE, null, ex);
        }
        tgvb.setVisible(true);
    }//GEN-LAST:event_jb_gervendasActionPerformed

    private void jb_agendaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jb_agendaActionPerformed

        Tela_OrcamentoBasico tob = null;
        try {
            tob = new Tela_OrcamentoBasico();
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Tela_Principal.class.getName()).log(Level.SEVERE, null, ex);
        }
        tob.setVisible(true);
    }//GEN-LAST:event_jb_agendaActionPerformed

    private void jb_contatosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jb_contatosActionPerformed
        Tela_Contatos tc = null;
        try {
            tc = new Tela_Contatos();
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Tela_Principal.class.getName()).log(Level.SEVERE, null, ex);
        }
        tc.setVisible(true);
    }//GEN-LAST:event_jb_contatosActionPerformed

    private void jm_solicitacoesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jm_solicitacoesActionPerformed
        Tela_RegSolicitacao trs = null;
        try {
            trs = new Tela_RegSolicitacao();
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Tela_Principal.class.getName()).log(Level.SEVERE, null, ex);
        }
        trs.setVisible(true);
    }//GEN-LAST:event_jm_solicitacoesActionPerformed

    private void jm_sobreassistecActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jm_sobreassistecActionPerformed
        Tela_Sobre ts = new Tela_Sobre();
        ts.setVisible(true);
    }//GEN-LAST:event_jm_sobreassistecActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Tela_PrincipalBasico.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Tela_PrincipalBasico.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Tela_PrincipalBasico.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Tela_PrincipalBasico.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>
        //</editor-fold>
        //</editor-fold>
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Tela_PrincipalBasico().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JButton jb_agenda;
    private javax.swing.JButton jb_cadcliente;
    private javax.swing.JButton jb_cadusuario;
    private javax.swing.JButton jb_contatos;
    private javax.swing.JButton jb_gerenciaros;
    private javax.swing.JButton jb_gervendas;
    private javax.swing.JButton jb_ordemservico;
    private javax.swing.JButton jb_registrarvenda;
    private javax.swing.JLabel jl_loged;
    private javax.swing.JMenuItem jm_sobreassistec;
    private javax.swing.JMenuItem jm_solicitacoes;
    // End of variables declaration//GEN-END:variables
}
